<include file="../Public/header" />
<link href="{:APPS_URL}/w3g/_static/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
  body{background-color: #f8f8f8;}
</style>
<div id="content">
  <div id="weiba" data-title="微吧" class="panel" data-selected="true"  data-menu="msgmenu" style="padding:0;">
    <header>
        <div id="header-buttons">
            <div id="messageLink" class="header-menu-link"><a href="{:U('w3g/Index/msgbox')}"><i class="num"></i></a></div>
        	<div id="menuLink" class="header-menu-link"></div>
            <!--<div id="otherLink">
                <a id="writeLink" class="header-menu-link" href="{:U('w3g/Weiba/quickPost')}"></a>
                <a id="spaceLink" class="header-menu-link" href="javascript:;"></a>
            </div>-->
        </div>
        <h1 class="">
            全部微吧
        </h1>
    </header>
    <div class="mainWeiba">
      <div class="tab">
          <ul>
              <li><a href="{:U('w3g/Weiba/index')}">推荐</a></li>
              <li class="current"><a href="{:U('w3g/Weiba/forum')}">微吧</a></li>
              <li><a href="{:U('w3g/Weiba/my')}" class="noborder">我的</a></li>
          </ul>
      </div>
      <div class="weiba_forumlist">
         <volist name="weibacate" id="cate">
         <php>if(empty($cate['weibalist'])):continue;endif;</php>
              <div class="section">
              <a name="{$cate.name}"></a>
                <div class="slt"><span title="收起"><img src="{:APPS_URL}/w3g/_static/images/arrow_t.png" height="11"></span>{$cate.name}</div>
                <div class="slc clearfix">
                  <div class="bklist">
                    <volist name="cate.weibalist" id="vo">
                        <dl>
                          <dt>
                            <a href="{:U('w3g/Weiba/detail',array('weiba_id'=>$vo['weiba_id']))}">
                              <img width="70" height="70" src="{$vo.avatar_middle}">
                            </a>
                          </dt>
                          <dd>
                            <h3>
                              <a title="{$vo.weiba_name}" href="{:U('w3g/Weiba/detail',array('weiba_id'=>$vo['weiba_id']))}">   {$vo.weiba_name}
                              </a>
                            </h3>
                          </dd>
                        </dl>
                    </volist>
                  </div>
                </div>
              </div>
          </volist>
          <div style="height:75px;"></div>
      </div>
      <script>
        $(function(){
        	var arrow_t = "{:APPS_URL}/w3g/_static/images/arrow_t.png";
        	var arrow_t0 = "{:APPS_URL}/w3g/_static/images/arrow_t0.png";
        	
           $('.slt').click(function(){
        	   var cla = $(this).find('span').attr('title');
        	   if(cla=='收起'){
        		   $(this).find('span').attr('title', '展开');
        		   $(this).find('img').attr('src', arrow_t0);
        		   $(this).next().hide();
        	   }else{
        		   $(this).find('span').attr('title', '收起');
        		   $(this).find('img').attr('src', arrow_t);
        		   $(this).next().show();		   
        	   }
           });

        })
      </script>
    </div>
</div>
<include file="../Public/footer" />